import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { SeoService } from './seo.service';
import { SeoController } from './seo.controller';
import { Tool } from '../tools/entities/tool.entity';
import { Article } from '../articles/entities/article.entity';
import { Category } from '../categories/entities/category.entity';

/**
 * SEO 模块
 * 提供 sitemap、robots.txt 等 SEO 功能
 */
@Module({
  imports: [
    TypeOrmModule.forFeature([Tool, Article, Category]),
  ],
  controllers: [SeoController],
  providers: [SeoService],
  exports: [SeoService],
})
export class SeoModule {}

